package com.lmc.chatroom.service;

import com.lmc.chatroom.mapper.friendMapper;
import com.lmc.chatroom.model.Friend;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class friendService {
    @Autowired
    friendMapper friendMapper;

    public List<Friend> getFriendList(Integer userId) {
        log.info("getFriendList");
        return friendMapper.getFriendList(userId);
    }
}
